
#ifndef CUSTOMTAGDIALOG_H
#define CUSTOMTAGDIALOG_H

#include <BButton>
#include <BLineEdit>
#include <BListWidget>
#include <BDialog>

using namespace BWE;

class CustomTagDialog : public BDialog
{
	BOBJECT(CustomTagDialog)
public:
	CustomTagDialog(BWidget* parent = 0);
	~CustomTagDialog();

	const BString& tagName() const;
	const BString& tagClass() const;

protected:
	void slotNameEditFinished(BObject* sender, const BValue& value);
	void slotListItemClicked(BObject* sender, const BValue& value);
	void slotListItemDoubleClicked(BObject* sender, const BValue& value);

	void slotCancelButtonClicked();
	void slotConfirmButtonClicked();

protected:
	virtual void popupEvent(const BEvent& event);

protected:
	BLineEdit*		_nameEdit;
	BLineEdit*		_classEdit;
	BListWidget*	_listWidget;
	BButton*		_cancelButton;
	BButton*		_confirmButton;
};

#endif
